package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ding
 * @since 2022-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_output_package_detail")
public class OrderOutputPackageDetailDo extends Model<OrderOutputPackageDetailDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("package_id")
    private Long packageId;

    /**
     * 出库单id
     */
    @TableField("order_output_id")
    private Long orderOutputId;

    /**
     * 长
     */
    @TableField("length")
    private Double length;

    /**
     * 宽
     */
    @TableField("width")
    private Double width;

    /**
     * 高
     */
    @TableField("height")
    private Double height;

    /**
     * 重量
     */
    @TableField("weight")
    private Double weight;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    /**
     * 逻辑删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 数量
     */
    @TableField("count")
    private Integer count;
    @TableField("in_count")
    private int inCount;
    @TableField("in_sku_id")
    private String inSkuId;

    /**
     * 耗材id
     */
    @TableField("consumables_id")
    private Long consumablesId;

    @TableField("track_number")
    private String trackNumber;

    @TableField("track_id")
    private Long trackId;

    public OrderOutputPackageDetailDo() {
    }

    public OrderOutputPackageDetailDo(OrderOutputPackageDo packageDo) {
        this.length=packageDo.getLength();
        this.weight=packageDo.getWeight();
        this.width=packageDo.getWidth();
        this.height=packageDo.getHeight();
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
